{include file="public/header" /}
</head>
<body>
<div class="x-body">
    <form action="{:url('save')}" class="layui-form" id="form">
        {foreach name="field" item="form"}
            {switch form.format}

            {case value="input"}
            {include file="form/items/input" type='' /}
            {/case}

            {case value="select"}
            {include file="form/items/select" type='' /}
            {/case}

            {default /}

            {/switch}
        {/foreach}

        <div class="layui-form-item" style="text-align: center;margin-top: 20%">
            <button class="layui-btn" lay-filter="save" lay-submit formObj="#form">保存</button>
        </div>
    </form>
</div>
</body>
<script>


</script>
</html>